function StageAssistant() {
	/* this is the creator function for your stage assistant object */
}



StageAssistant.prototype.setup = function() {
	/* this function is for setup tasks that have to happen when the stage is first created */
	
	AppSettings.init();
	
	AddSubMenuAttr = {omitDefaultItems: true};
	AddSubMenuModel = {
		visible: true,
		items: [
				Mojo.Menu.editItem,
				Mojo.Menu.helpItem
				]
	};

	this.controller.pushScene("main");
	
};


StageAssistant.prototype.handleCommand = function(event) {
	var currentScene = this.controller.activeScene();
	if(event.type == Mojo.Event.command) {
		switch(event.command) {
			case Mojo.Menu.helpCmd:
				this.controller.pushAppSupportInfoScene();
				break;
		}
	} else if (event.type == Mojo.Event.commandEnable) {
		switch(event.command) {
			case Mojo.Menu.helpCmd:
				if (!this.controller.activeScene().assistant.helpMenuDisabled) {
					event.stopPropagation();
				}
				break;
		}
	}
}

